#!/bin/sh

if ( test -z "$1" -o -z "$2" )
then
	echo "usage: xmltoh.sh inputfile variablename"
	exit 1
fi

echo "static const char *$2[]={"
sed -e 's|\\|\\\\|g' -e 's|\"|\\\"|g' -e 's|^|\"|' -e 's|$|\",|' $1
echo "NULL"
echo "};"
